import * as ajaxRequest from "../ajaxRequest";

import environment from "@/environment/index";

/**
 * 获取产品属性数据管理
 * @param {*} option 
 */
/**
 * 手机号码修改步骤一
 */
export const GetChangePhoneToken = options => {
  return ajaxRequest.get(`${environment.authorityUrl}/api/v1/user/GetChangePhoneToken/${options}`);
};
/**
 * 手机号码修改步骤二
 */
export const ChangePhoneNumber = options => {
  return ajaxRequest.put(`${environment.authorityUrl}/api/v1/user/ChangePhoneNumber`, options);
};
//修改密码  
export const updateUserPwd = params => {
  return ajaxRequest.put(
    `${environment.authorityUrl}/api/v1/user/ChangePassword`, params);
};
/**
* 用户信息
*/
export const getUserProfile = () => {
  return ajaxRequest.get(`${environment.authorityUrl}/api/v1/user/getuserinfo`);
};
/**
* 修改昵称
*/
export const ChangeDisplayName = options => {
  return ajaxRequest.put(`${environment.authorityUrl}/api/v1/user/ChangeDisplayName/${options}`);
};